home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PChangeAll.cpp < prev    next >
C/C++ Source or Header  |  1996-09-04  |  913b  |  36 lines

  1. /*
  2.  *--- PChangeAll.cpp ------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 3:57 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file ChangeAll.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PChangeAll.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PChangeAll::PChangeAll
  16.   (    const char * sFindWhat,
  17.     const char * sChangeTo,
  18.     short cSearchRange,
  19.     PMBool bMatchCase,
  20.     PMBool bWholeWord,
  21.     PMBool bClearAttr )
  22. {
  23.     PRequestBuf    request(strlen(sFindWhat) + strlen(sChangeTo) + 20);
  24.     
  25.     request << sFindWhat
  26.             << sChangeTo
  27.             << cSearchRange
  28.             << bMatchCase
  29.             << bWholeWord
  30.             << bClearAttr;
  31.     
  32.     PCommand command(pm_changeall, request);
  33. }
  34.  
  35. // end of PChangeAll.cpp
  36.